﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Addon;

namespace Plugin
{
    public partial class DForm : Form
    {
        Pen pe = new Pen(Color.Red);
        Graphics g ;
        public DForm()
        {
            InitializeComponent();
        }

        public void draw(ServerClient x, Point last, Point p)
        {
            int cx, cy, lx, ly;
            cx = (Convert.ToInt32(x.OriginX) / 10) + 400;
            cy = (Convert.ToInt32(x.OriginY) / 10) + 400;
            lx = (last.X / 10) + 400;
            ly = (last.Y / 10) + 400;
            g = panel1.CreateGraphics();
            g.DrawLine(pe, last, p);
        }

        public void reset()
        {
            g.Clear(Color.White);
        }
        public void save()
        { 
        }

    }
}
